package com.yunfei.springbootgoods.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class GoodsOrder {

    private Integer orderId;
    private Integer goodsId;
    private Goods goods;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date orderTime;
    private Integer status;

    public GoodsOrder() {
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "goodsOrder{" +
                "orderId=" + orderId +
                ", goodsId=" + goodsId +
                ", goods=" + goods +
                ", orderTime=" + orderTime +
                ", status=" + status +
                '}';
    }
}
